//
//  MCConstants.m
//  meets-ios
//
//  Created by Mark on 15/10/23.
//  Copyright © 2015年 meets. All rights reserved.
//

#import "MCConstants.h"

NSString *const MCChatTypeRelationChangeExtValue = @"RELATION_OP";
NSString *const MCChatTypeVideoFileExtValue      = @"VIDEO_FILE";
NSString *const MCChatTypeUserCardExtValue       = @"USER_CARD";
NSString *const MCChatTypePicFileExtValue        = @"PIC_FILE";
NSString *const MCChatTypeDocFileExtValue        = @"DOC_FILE";
NSString *const MCChatTypeLocateExtValue         = @"LOCATE";
NSString *const MCChatTypeSystemExtValue         = @"SYS";
NSString *const MCChatTypePasterExtValue         = @"PASTER_IMG";
NSString *const MCChatTypeCardT1ExtValue         = @"CARD_T1";
NSString *const MCChatTypeCardT2ExtValue         = @"CARD_T2";
NSString *const MCChatTypeCardT3ExtValue         = @"CARD_T3";
NSString *const MCChatTypeCardT4ExtValue         = @"CARD_T4";
NSString *const MCChatTypeVoiceExtValue          = @"VOICE";
NSString *const MCChatTypeTextExtValue           = @"TEXT";

NSString *const MCChatTypeReplyShareWithPasterExtValue = @"SHARE_FEED_CARD_PASTER";
NSString *const MCChatTypeReplyShareWithTextExtValue   = @"SHARE_FEED_CARD_TEXT";
NSString *const MCChatTypeShareFeedExtValue            = @"SHARE_FEED_CARD";
NSString *const MCChatTypeShareUserExtValue            = @"SHARE_USER_CARD";
NSString *const MCChatTypeFollowMeExtValue             = @"FOLLOW_ME";
NSString *const MCChatTypeSayHiExtValue                = @"SAY_HI";
NSString *const MCChatTypeGiftValue                    = @"GIFT";
NSString *const MCChatTypeSendVipValue                 = @"SEND_VIP";

@implementation MCConstants

+ (NSDictionary *)MCChatTypeEnumDic {
    static NSDictionary    *instance = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        instance = [NSDictionary dictionaryWithObjects:[NSArray arrayWithObjects:
                                                        [NSNumber numberWithUnsignedInteger:ChatTypePicFile],
                                                        [NSNumber numberWithUnsignedInteger:ChatTypeVoice],
                                                        [NSNumber numberWithUnsignedInteger:ChatTypeDocFile],
                                                        [NSNumber numberWithUnsignedInteger:ChatTypeVideoFile],
                                                        [NSNumber numberWithUnsignedInteger:ChatTypeLocate],
                                                        [NSNumber numberWithUnsignedInteger:ChatTypeUserCard],
                                                        [NSNumber numberWithUnsignedInteger:ChatTypeSys],
                                                        [NSNumber numberWithUnsignedInteger:ChatTypeText],
                                                        [NSNumber numberWithUnsignedInteger:ChatTypePaster],
                                                        [NSNumber numberWithUnsignedInteger:ChatTypeCardT1],
                                                        [NSNumber numberWithUnsignedInteger:ChatTypeCardT2],
                                                        [NSNumber numberWithUnsignedInteger:ChatTypeCardT3],
                                                        [NSNumber numberWithUnsignedInteger:ChatTypeCardT4],
                                                        [NSNumber numberWithUnsignedInteger:ChatTypeFollowMe],
                                                        [NSNumber numberWithUnsignedInteger:ChatTypeShareFeed],
                                                        [NSNumber numberWithUnsignedInteger:ChatTypeShareUser],
                                                        [NSNumber numberWithUnsignedInteger:ChatTypeSayHi],
                                                        [NSNumber numberWithUnsignedInteger:ChatTypeReplyToShareWithText],
                                                        [NSNumber numberWithUnsignedInteger:ChatTypeReplyToShareWithPaster],
                                                        [NSNumber numberWithUnsignedInteger:ChatTypeRelationOp],
                                                        [NSNumber numberWithUnsignedInteger:ChatTypeGift],
                                                        [NSNumber numberWithUnsignedInteger:ChatTypeSendVip], nil]
                                               forKeys:[NSArray arrayWithObjects:
                                                        MCChatTypePicFileExtValue,
                                                        MCChatTypeVoiceExtValue,
                                                        MCChatTypeDocFileExtValue,
                                                        MCChatTypeVideoFileExtValue,
                                                        MCChatTypeLocateExtValue,
                                                        MCChatTypeUserCardExtValue,
                                                        MCChatTypeSystemExtValue,
                                                        MCChatTypeTextExtValue,
                                                        MCChatTypePasterExtValue,
                                                        MCChatTypeCardT1ExtValue,
                                                        MCChatTypeCardT2ExtValue,
                                                        MCChatTypeCardT3ExtValue,
                                                        MCChatTypeCardT4ExtValue,
                                                        MCChatTypeFollowMeExtValue,
                                                        MCChatTypeShareFeedExtValue,
                                                        MCChatTypeShareUserExtValue,
                                                        MCChatTypeSayHiExtValue,
                                                        MCChatTypeReplyShareWithTextExtValue,
                                                        MCChatTypeReplyShareWithPasterExtValue,
                                                        MCChatTypeRelationChangeExtValue,
                                                        MCChatTypeGiftValue,
                                                        MCChatTypeSendVipValue, nil]];
    });

    return instance;
}

@end